//
//  FXHitThroughView.swift
//  FXControls
//
//  Created by fanxx on 2022/9/2.
//

import UIKit

/// 本身不响应任何事件，但内容的控件依然响应
open class FXHitThroughView: UIView {
    open override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
        let view = super.hitTest(point, with: event)
        return view == self ? nil : view
    }
}
